# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=dar
pkgver=2.6.10
pkgrel=0
pkgdesc="Disk ARchive"
url="http://dar.linux.free.fr/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # the provided "make check" requires root permissions
makedepends="zlib-dev bzip2-dev lzo-dev xz-dev libgcrypt-dev gpgme-dev
	e2fsprogs-dev librsync-dev curl-dev gettext-dev automake
	autoconf libtool libthreadar-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-libs $pkgname-dev"
source="https://downloads.sourceforge.net/dar/dar-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-dar-static \
		--disable-static \
		--disable-upx
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="2fceafba6c6851c5dd11c0d1a3fda8aeddac16f39cf0051027b178703a5e821fb769c42624063d8722d80ea62bb735f3b0c6c39538c1c939234df49d6b757428  dar-2.6.10.tar.gz"
